-- curl -i '127.0.0.1:6699/api/unit/test_basefuns'
local F    = require "base_funs"
local tb    = require "resty.iresty_test"

local test = tb.new({unit_name="bench_example"})

function tb:init(  )
    self:log("init complete")
end



function tb:test_00001(  )
	
	if F.isEmpty(FALSE) and F.isEmpty("0") and F.isEmpty(nil) then
	    self:log('OK')
	else
	    error("not Empty")
	end
	
    
end

-- function tb:test_00003(  )
-- 	for i=1,20 do
-- 		local s1 = "   a,b|c||ERT||ui  \n" .. i
-- 		local s2 = "   WERTd" .. i
-- 		local s3 = "   TYUi  " .. i

-- 		 local tmp = F.trim(s1) 
-- 		 local tmp = F.trim(s2)
-- 		 local tmp = F.trim(s3)  
-- 	end

--     self:log("ok!!")
-- end


-- units test
test:run()

-- bench test(total_count, micro_count, parallels)
-- test:bench_run(100, 25, 200)